package com.yanqu.road.entity.systemgroup.newmonopolymarket;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_c_new_monopoly_market_notice")
public class NewMonopolyMarketNoticeData extends DataObject {

    @FieldTypeAnnotation(desc = "每周", update = true, select = true)
    private int weekId;

    @FieldTypeAnnotation(select = true, update = true,desc = "分组id")
    private long groupId;

    @FieldTypeAnnotation(update = true,desc = "资源分组id")
    private int resGroupId;

    @FieldTypeAnnotation(select = true, update = true,desc = "类型")
    private int type;

    @FieldTypeAnnotation(desc = "占领玩家")
    private long userId;

    @FieldTypeAnnotation(desc = "占领 位置id")
    private int pos;

    @FieldTypeAnnotation(desc = "被抢夺者id")
    private long robedId;

    @FieldTypeAnnotation(desc = "操作类型：0:搜索占领；2：挑战")
    private int actionType;

    @FieldTypeAnnotation(desc = "是否占领：0未占领；1占领")
    private int occupyType;

    @FieldTypeAnnotation(desc = "抢夺时间")
    private int time;

    public int getWeekId() {
        return weekId;
    }

    public void setWeekId(int weekId) {
        if(this.weekId != weekId) {
            this.weekId = weekId;
            setUpdateOption();
        }
    }

    public long getGroupId() {
        return groupId;
    }
    public void setGroupId(long groupId) {
        if (this.groupId != groupId) {
            this.groupId = groupId;
            setOp(DataStatus.Update);
        }
    }

    public int getType() {
        return type;
    }
    public void setType(int type) {
        if (this.type != type) {
            this.type = type;
            setOp(DataStatus.Update);
        }
    }

    public int getResGroupId() {
        return resGroupId;
    }

    public void setResGroupId(int resGroupId) {
        this.resGroupId = resGroupId;
    }

    public long getUserId() {
        return userId;
    }
    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public int getPos() {
        return pos;
    }
    public void setPos(int pos) {
        if (this.pos != pos) {
            this.pos = pos;
            setOp(DataStatus.Update);
        }
    }

    public long getRobedId() {
        return robedId;
    }
    public void setRobedId(long robedId) {
        if (this.robedId != robedId) {
            this.robedId = robedId;
            setOp(DataStatus.Update);
        }
    }

    public int getActionType() {
        return actionType;
    }

    public void setActionType(int actionType) {
        if(this.actionType != actionType) {
            this.actionType = actionType;
            setUpdateOption();
        }
    }

    public int getOccupyType() {
        return occupyType;
    }

    public void setOccupyType(int occupyType) {
        if(this.occupyType != occupyType) {
            this.occupyType = occupyType;
            setUpdateOption();
        }
    }

    public int getTime() {
        return time;
    }
    public void setTime(int time) {
        if (this.time != time) {
            this.time = time;
            setOp(DataStatus.Update);
        }
    }

}
